package com.hljcj.boot.dao;

import com.hljcj.boot.bean.SysStaff;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface StaffRepository extends JpaRepository<SysStaff, Integer> {
    List<SysStaff> findByStaffName(String staffName);


//	@Query(value = "from SysStaff o where o.depart.departName =:departName ")
//	List<SysStaff> queryStaffByDepart(String departName);
//
//	@Query(value = "from SysStaff o where o.depart.departName =:departName "
//			+ "and o.staffName =:staffName")
//	List<SysStaff> queryStaffByDepart(String departName, String staffName);
//
//	@Query(value = "from SysStaff o where o.depart.departName =?1 "
//			+ "and o.staffName =?1")
//	List<SysStaff> queryStaffByDepart1(String departNam, String staffName);

}
